<?php
class DetallenotaingresosController extends AppController {

	var $name = 'Detallenotaingresos';
	var $components = array('RequestHandler');
	
	function index($ordencompra_id){
		$this->layout="ajax";
		if($this->JQGridPaginate->isGrid){
			$fields = array('Detallenotaingreso.id',
							'"Articulo"."codigo" AS "Detallenotaingreso__articulocodigo"',
							'"Articulo"."descripcion" AS "Detallenotaingreso__articulodescripcion"',
							'"Articulo"."presentacion" AS "Detallenotaingreso__articulopresentacion"',
							'Detallenotaingreso.cantidad');
			$this->JQGridPaginate->recursive = 0;
			$this->JQGridPaginate->cakefields = $fields;
			echo $this->JQGridPaginate->paginate("Detallenotaingreso");
		}
		$this->autoRender = false;
	}	
}